package com.first.xiinn.dao;

import java.util.List;

import com.first.core.dao.BaseDao;
import com.first.core.util.PagingBean;
import com.first.xiinn.model.User;

public interface UserDao extends BaseDao<User>{

	public User getUser(String key);
	/**
	 * 模糊查询作者
	 * @param userName
	 * @return
	 */
	public List searchAutor(String userName);
	public List getforgotten(String name,String email);
	/**
	 * 通过ID 主键来获取用户信息
	 * @param id
	 * @return
	 */
	public User getById(String id);
	public User getregister(User u);
	public List<User> list();
	public List<User> list(PagingBean pb);
	
	/**
	 * 用户登录查询
	 * @param login_id
	 * @param password
	 * @return
	 */
	public List loginSearch(String login_id,String password);
	
	/**
	 * 根据email获取用户信息
	 * @param email
	 * @return
	 */
	public User ibGetUserByEmail(String email);
	
	/**
	 * 根据邮箱验证随机码获取用户信息
	 * @param verifyData
	 * @return
	 */
	public User ibGetUserByVerifyData(String verifyData);
}
